package com.dashu.core.result;



/**
 * 返回T类型的对象 eg. {"code":1,"message":"SUCCESS"}
 * 用作返回成功与否的标志
 */
public class ResultInfo {
    private Integer code;//-1失败1成功
    private String message;//失败信息

    public ResultInfo(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResultInfo() {
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ResultInfo{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
